package com.zzmx.springboot.atomikos.service.impl;

import com.zzmx.springboot.atomikos.entity.Admin;
import com.zzmx.springboot.atomikos.mapper.test1.AdminMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author liuxc
 * @Description:
 * @create 2018-04-16 17:56
 **/
@Service
public class AdminServiceImpl {

    @Autowired
    private AdminMapper adminMapper;

    public Admin findByNameAndPassword(Admin admin){
        return adminMapper.findByNameAndPassword(admin);
    }
}
